//
//  BJDnagShiDongTaiViewController.m
//  DangXiao
//
//  Created by APPLE on 16/12/12.
//  Copyright © 2016年 APPLE. All rights reserved.
//

#import "BJDnagShiDongTaiViewController.h"

@interface BJDnagShiDongTaiViewController ()<UITableViewDelegate, UITableViewDataSource>
@property (nonatomic, strong) UITableView *myTableView;


@end

@implementation BJDnagShiDongTaiViewController

- (void)viewDidLoad {
    
    [super viewDidLoad];
    self.navigationItem.title = @"党史动态";
}

#pragma mark ---- 设置TbaleView
- (void)initUI{

    _myTableView = [[UITableView alloc]initWithFrame:CGRectMake(0, 0, ScreenWidth, ScreenHeight - 64) style:(UITableViewStylePlain)];
    _myTableView.delegate = self;
    _myTableView.dataSource = self;
    _myTableView.backgroundColor = GrayLabel;
    
    //    注册cell
    [_myTableView registerClass:[UITableViewCell class] forCellReuseIdentifier:@"cell"];
    [self.view addSubview:_myTableView];
}

-(NSInteger)numberOfSectionsInTableView:(UITableView *)tableView{
    return 1;
}

-(NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section{
    return 16;
}

- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath{
    
    UITableViewCell *cell = [[UITableViewCell alloc]initWithStyle:(UITableViewCellStyleValue1) reuseIdentifier:@"cell"];
    cell.textLabel.font = FontVlaue(15);
    cell.detailTextLabel.font = FontVlaue(15);
    cell.textLabel.text = @"爱神的箭番窠倒臼";
    cell.detailTextLabel.text = @"11-10";
    return cell;
}


- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
}


@end
